package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysMarket;
import com.ruoyi.system.domain.SysPayload;
import com.ruoyi.system.mapper.SysPayloadMapper;
import com.ruoyi.system.service.ISysPayloadService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.validation.Payload;
import java.util.List;

@Service
public class SysPaylaodServiceImpl implements ISysPayloadService {
    @Resource
    SysPayloadMapper sysPayloadMapper;
    @Override
    public List<SysMarket> selectPayloadList(SysPayload payload) {
        return sysPayloadMapper.selectPayloadList(payload);
    }

    @Override
    public SysPayload selectPayloadIdById(int payloadId) {
        return sysPayloadMapper.selectPayloadById(payloadId);
    }

    @Override
    public int insertPayload(SysPayload syspayload) {
        return sysPayloadMapper.insertPayload(syspayload);
    }

    @Override
    public int updatePayload(SysPayload syspayload) {
        return sysPayloadMapper.updatePayload(syspayload);
    }

    @Override
    public int deletePayloadById(int payloadId) {
        return sysPayloadMapper.deletePayloadById(payloadId);
    }
}
